package com.hd123.rumba.qt.def;

import java.util.ArrayList;
import java.util.List;

public class SQLNCriteriaList {
	public String debugInfo() {
		StringBuffer sb = new StringBuffer();
		sb.append(getClass().getName() + "\n");
		sb.append("NextQuery: " + getNextQuery() + "\n");
		sb.append("Items:\n");
		for (int i = 0; i < getItems().size(); ++i) {
			SQLNCriteria item = (SQLNCriteria)getItems().get(i);
			sb.append(i + ": " + item.debugInfo() + "\n");
		}
		return sb.toString();
	}

	private String nextQuery;

	private List items = new ArrayList(); // list of SQLNCriteria

	public List getItems() {
		return items;
	}

	public void setItems(List items) {
		this.items = items;
	}

	public String getNextQuery() {
		return nextQuery;
	}

	public void setNextQuery(String nextQuery) {
		this.nextQuery = nextQuery;
	}

	private QueryDefinition query;

	public QueryDefinition getQuery() {
		return query;
	}

	public void setQuery(QueryDefinition query) {
		this.query = query;
	}
}
